#if !defined(AFX_TREESELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_)
#define AFX_TREESELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TreeSelectDlg.h : header file
//
#include "MutiTreeCtrl.h"
#include "XTreeCtrl.h"
#include "main.h"
/////////////////////////////////////////////////////////////////////////////
// CTreeSelectDlg dialog

class CTreeSelectDlg : public CDialog
{
// Construction
public:
	CTreeSelectDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CTreeSelectDlg();   // standard constructor
//	CTreeCtrl *m_treeFrom;
	void InitTree();
	bool GetSelectedPath();
	void GetSelectedItem();
	void TravelChild(HTREEITEM hItem);
	CString	m_strSelectType;
	CString m_strSelectedDev;
	CString m_strSqlWhereSelDev;
	int		m_nID;
	int		m_nItemType;
//	int		*m_pSelServerID;
	int		m_nSelNum;
	CBrush m_brush;
	TItemData* ExtItemData(HTREEITEM hItem);
// Dialog Data
	//{{AFX_DATA(CTreeSelectDlg)
	enum { IDD = IDD_DLG_TREESELECT };
	CXTreeCtrl	m_treeFrom;
	CMutiTreeCtrl	m_MutiTree;
//	CTreeCtrl	m_tree;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTreeSelectDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HTREEITEM CopyData_tree2tree(CTreeCtrl *treeFrom,CTreeCtrl *treeTo,HTREEITEM itemFrom=TVI_ROOT,HTREEITEM itemTo=TVI_ROOT);
	HTREEITEM CopyData_tree2tree_Muti(CTreeCtrl *treeFrom,CTreeCtrl *treeTo,HTREEITEM itemFrom=TVI_ROOT,HTREEITEM itemTo=TVI_ROOT);
	HTREEITEM m_hRootItem;
	CImageList m_imgState;
	// Generated message map functions
	//{{AFX_MSG(CTreeSelectDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnDestroy();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TREESELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_)
